<?php session_start();
$role = $_SESSION['role'];
$_SESSION['posmanager']=0;
$_SESSION['poscoder']=1;
$_SESSION['postest']=0;//manager 3;coder 1; tester 2


if(array_key_exists("page",$_GET))
        $page  = $_GET['page'];
    else
        $page = 1;
    
    mysql_select_db("elihan") or die ("Fail");
    $abc = ($page-1)*10;

include 'operations/connection.php';

$querydetail=mysql_query("SELECT p.NameProject, p.Description,DATE_FORMAT( p.DateStart, '%Y-%m-%d') as DateStart, p.DateComplete, p.IDManager, p.Status
FROM pr_project p,pr_composition c, employee e WHERE ((c.IDEmployee = '$id_employee'  AND e.IDEmployee = c.IDEmployee )
 or (p.IDManager = '$id_employee'  AND e.IDEmployee = p.IDManager )) AND p.IDProject = c.IDProject AND  p.IDProject ='$id'
 GROUP BY p.IDProject ORDER BY p.NameProject ASC 
");

$queryLstMember=mysql_query("SELECT c.IDComposition, c.IDEmployee, c.IDProject, c.Position, c.Status, e.UserName, e.FullName,
        		 e.Position as PositionEmp FROM pr_composition c, employee e 
        		 WHERE c.IDProject = '$id' AND c.IDEmployee = e.IDEmployee ");

//$queryLstCoder=mysql_query("SELECT c.IDComposition, c.IDEmployee, c.IDProject, c.Position, c.Status, e.UserName, e.FullName,
  //      		 e.Position as PositionEmp FROM pr_composition c, employee e 
    //    		 WHERE c.IDProject = '$id' AND c.IDEmployee = e.IDEmployee ");


?>
<link
	href="css/style.css" rel="stylesheet" type="text/css" />

<script type="text/javascript"
	src="admin/ckeditor_351/ckeditor.js"></script>
<script type="text/javascript"
	src="admin/ckfinder/ckfinder.js"></script>
<style>
.cke_contents {
	height: 250px !important;
}
a[title="Browse Server"]{
	display:none !important;
}
a[title="Duyệt trên máy chủ"]{
	display:none !important;
}
a[title="서버 보기"]{
	display:none !important;
}
a[title="Link"]{
	display:none !important;
}
a[title="Liên kết"]{
	display:none !important;
}
a[title="링크"]{
	display:none !important;
}
a[title="Advanced"]{
	display:none !important;
}
a[title="Tab mở rộng"]{
	display:none !important;
}
a[title="자세히"]{
	display:none !important;
}
tr td.cke_bottom{
	display:none !important;
}
</style>

<script type="text/javascript">
	$(document).ready(function(){
		$('.divinvi:not(:last)').hide();
		$('.divinvi:last').show();
		$('#accordion-js').find('.caption').click(function(){
			$(this).next().slideToggle();

			var editor = CKEDITOR.replace("ncontent");
		    CKFinder.setupCKEditor(editor, 'admin/ckfinder') ;
		});
		bindEventAfterAjax();
		
	}); 

	function cancelAddErr(thamso){
		var link = "#"+thamso;
		$(link).slideToggle();

		document.getElementById('addnewerror').style.display = 'visible';
		document.getElementById('update').style.visibility='hidden';
		document.getElementById('update').style.display='none';
		document.getElementById('addnewerror').style.display = 'inline';
		CKEDITOR.instances.ncontent.setData('');
		$("#formadderror\\:adderror").htmlarea();

		
	}

	
	function bindEventAfterAjax(){
		$("#report tr:not(#mo):even").addClass("odd");
	    $("#report tr:not(.odd):not(#mo)").hide();
	    $("#report tr:last-child").show();
	    
	    //$("#report tr:not(:last-child).odd").click(function(){
	    	//$(this).hide();
	    	//$(this).next("tr").toggle();
	        
	    //});
	    
		//$("input#showcommand1").click(function(){
	    	//$(this).parent().parent().parent().find("#themcommand").toggle();	    		
	        
	   // });

	   // $("div#themcommand").find("#cancelthemcommand").click(function(){
	    //	$(this).parent().parent().toggle();	
	    //});
	}
	function showcommanderror(indexcomment,idtestproject,id_employee,id,recyclebin,ele){
		commentProjectHide(indexcomment,idtestproject,id_employee,id,recyclebin,ele);
		/*$("#report tr.odd:not(#mo)").show();
		$("#report tr:not(.odd):not(#mo)").hide();
		$(ele).hide();
    	$(ele).next("tr").toggle();*/
	}
	
	function showcommanderrorRecyclebin(indexcomment,idtestproject,id_employee,id,recyclebin,ele){
		if (window.XMLHttpRequest)
		  {// code for IE7+, Firefox, Chrome, Opera, Safari
		  xmlhttp=new XMLHttpRequest();
		  }
		else
		  {// code for IE6, IE5
		  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
		  }
		xmlhttp.onreadystatechange=function()
		  {
		  if (xmlhttp.readyState==4 && xmlhttp.status==200)
		    {
			   // alert(xmlhttp.responseText);
		        $(ele).parent().parent().parent().next("tr").html(xmlhttp.responseText);
		        $("#report tr.odd:not(#mo)").show();
				$("#report tr:not(.odd):not(#mo)").hide();
				$(ele).parent().parent().parent().hide();
		    	$(ele).parent().parent().parent().next("tr").toggle();
		    }
		  }
		var lang = '<?=$_SESSION['lang']?>';
		xmlhttp.open("GET","content-project/comment-project-hide-recyclebin.php?indexcomment="+indexcomment+"&idtestproject="+idtestproject+"&id_employee="+id_employee+"&idproject="+id+"&recyclebin="+recyclebin+"&newlang="+lang,true);
		xmlhttp.setRequestHeader("Content-Type", "charset=utf-8");
		xmlhttp.send();
	}
	function showthemcommand(ele){
		$(ele).parent().parent().parent().find("#themcommand").toggle();	
	}

	function closethemcommand(ele){
		$(ele).parent().parent().toggle();	
	}
	
	function closeCommand(){
		$("#report tr.odd:not(#mo)").show();
		$("#report tr:not(.odd):not(#mo)").hide();
	}
	
	function javas(ele){
		alert($(ele).parent().find("#ajaxok"))
		$(ele).parent().find("#ajaxok").val("sdfsd");
		
	}
	
	function javass(ele){
		alert(ele);
		alert(ele.parentNode)
		alert(ele.parentNode.getElementsByTagName("input"));
		x = ele.parentNode.getElementsByTagName("input");
		for (i=0;i<x.length;i++)
		{	
			if (x[i].getAttribute("id")=='ajaxok'){
				x[i].value='luan';
				break;
			}
			
		}
		
	}

	
</script>
<script type="text/javascript">

function showdetail(){
	if (window.XMLHttpRequest)
	  {// code for IE7+, Firefox, Chrome, Opera, Safari
	  xmlhttp=new XMLHttpRequest();
	  }
	else
	  {// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	  }
	xmlhttp.onreadystatechange=function()
	  {
	  if (xmlhttp.readyState==4 && xmlhttp.status==200)
	    {
		    //alert(xmlhttp.responseText);
	        document.getElementById("ajaxdelete").innerHTML=xmlhttp.responseText;
	    }
	  }
	xmlhttp.open("GET","ajax/project_command.php",true);
	xmlhttp.send();
}

var doctitle="";
var doctil="";
var doctilc="424242";
function addStyle1ColorCommand(ele){
	 doctitle = $(ele).parent().parent().parent().find("#titlecomment");	 
	 doctitle.css("color","#B023AB");
	 doctilc = "B023AB";
}

function addStyle2ColorCommand(ele){
	 doctitle = $(ele).parent().parent().parent().find("#titlecomment");	 
	 doctitle.css("color","#B02323");
	 doctilc = "B02323";
}

function addStyle3ColorCommand(ele){
	 doctitle = $(ele).parent().parent().parent().find("#titlecomment");	 
	 doctitle.css("color","#3DA850");
	 doctilc = "3DA850";
}


function addStyleColorButton1(){
	 doctitle = document.getElementById('titleerror');
	 doctitle.style.color = '#B023AB';
	 $('#titleerrorhidden').val('B023AB');
}	
function addStyleColorButton2(){
	 doctitle = document.getElementById('titleerror');
	 doctitle.style.color = '#B02323';
	 $('#titleerrorhidden').val('B02323');
} 
function addStyleColorButton3(){
	 doctitle = document.getElementById('titleerror');
	 doctitle.style.color = '#3DA850';
	 $('#titleerrorhidden').val('3DA850');
}



function delete_test_project(str,idtestproject,idp,idemployee,page,els)
	{
	if (window.XMLHttpRequest)
	  {// code for IE7+, Firefox, Chrome, Opera, Safari
	  xmlhttp=new XMLHttpRequest();
	  }
	else
	  {// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	  }
	xmlhttp.onreadystatechange=function()
	  {
	  if (xmlhttp.readyState==4 && xmlhttp.status==200)
	    {
		    //alert(xmlhttp.responseText);
	        document.getElementById("ajaxdelete").innerHTML=xmlhttp.responseText;
	        bindEventAfterAjax();
	    }
	  }
	var lang = '<?=$_SESSION['lang']?>';
	xmlhttp.open("GET","content-project/process-delete-test-pro.php?prdelete="+str+"&idtestproject="+idtestproject+"&id="+idp+"&idemp="+idemployee+"&newlang="+lang+"&page="+page,true);
	xmlhttp.send();
}

function delete_test_project_recyclebin(str,idtestproject,idp,idemployee,page,els)
{
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
	    //alert(xmlhttp.responseText);
        document.getElementById("aaa").innerHTML=xmlhttp.responseText;
        bindEventAfterAjax();
    }
  }
var lang = '<?=$_SESSION['lang']?>';
xmlhttp.open("GET","content-project/process-delete-test-pro-re-bin.php?prdelete="+str+"&idtestproject="+idtestproject+"&id="+idp+"&idemp="+idemployee+"&newlang="+lang+"&page="+page,true);
xmlhttp.send();
}

function edittile_testproject(idtestproject,idp,idemployee,title,color){
	var content='';
	$.ajax({url:"ajax/testproject_id.php?id="+idtestproject,success:function(result){
		content = result;
		$('#adderror').slideDown();
		document.getElementById('addnewerror').style.display = 'none';
		document.getElementById('update').style.visibility='visible';
		document.getElementById('update').style.display = 'inline';
		
		document.formadderror.idtestproject.value=idtestproject;		
		var ct = content+"";
		CKEDITOR.instances['ncontent'].setData(ct);
	}});
	//document.write( title);
	var doctil = document.getElementById('titleerror');
	$('#titleerrorhidden').val(color);
	//alert('wsdf');
	switch (color){
	case 'B023AB':			
		doctil.value= title;
		doctil.style.color="#B023AB";
		break;
	case '424242':
		doctil.value= title;
		doctil.style.color="#424242";
		break;
	case '3DA850':
		doctil.value= title;
		doctil.style.color="#3DA850";
		break;
	case 'B02323':
		doctil.value= title;
		doctil.style.color="#B02323";
		break;
	default:
		doctil.value= title;
		doctil.style.color="#424242";
		break;
	}
	
}
function setTitleValues_EditPro(){
	if(doctil==""){
		document.formadderror.titleerror.value = document.getElementById('titleerror').value+"-%$#@!-#424242";
	}else{
		alert('color title === ' + document.formadderror.titleerror.value);
		document.formadderror.titleerror.value =doctil;
	}
}


function delete_comment(idcomment,idtestpro,idemployee,ele)
{
	if (window.XMLHttpRequest)
	  {// code for IE7+, Firefox, Chrome, Opera, Safari
	  xmlhttp=new XMLHttpRequest();
	  }
	else
	  {// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	  }
	xmlhttp.onreadystatechange=function()
	  {
	  if (xmlhttp.readyState==4 && xmlhttp.status==200)
	    {
		    $(ele).parent().parent().parent().parent().html(xmlhttp.responseText);
		    $(ele).parent().parent().parent().parent().parent().parent().find("#titlecomment").val('');
	    }
	  }
	xmlhttp.open("GET","content-project/delete-comment.php?idcomment="+idcomment+"&idtestpro="+idtestpro+"&idemp="+idemployee,true);
	xmlhttp.send();

}

function add_comment(idtestpro,idemployee,ele)
{
	
	if (window.XMLHttpRequest)
	  {// code for IE7+, Firefox, Chrome, Opera, Safari
	  xmlhttp=new XMLHttpRequest();
	  }
	else
	  {// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	  }
	xmlhttp.onreadystatechange=function()
	  {
	  if (xmlhttp.readyState==4 && xmlhttp.status==200)
	    {
		    $(ele).parent().parent().find("#titlecomment").val('');
		    $(ele).parent().parent().find("#titlecomment").css("color","#424242");
		    $(ele).parent().parent().hide();
		    //alert(xmlhttp.responseText);
		    $(ele).parent().parent().parent().find('#ajaxcomment').html(xmlhttp.responseText);
		    doctilc = "424242";
	    }
	  }
	//var ct =  $(ele).parent().parent().find("#titlecomment").val();
	//var comment = ct;

	var comment ="";
	var stylecolor = doctilc;
	comment = $(ele).parent().parent().find("#titlecomment").val();
	
	xmlhttp.open("GET","content-project/add-comment.php?idtestpro="+idtestpro+"&idemp="+idemployee+"&stylecolor="+stylecolor+"&comment="+comment,true);
	xmlhttp.send();

}


function viewcommanderror(indexcomment,idtestproject,id_employee,id,recyclebin,ele)
{
		if (window.XMLHttpRequest)
		  {// code for IE7+, Firefox, Chrome, Opera, Safari
		  xmlhttp=new XMLHttpRequest();
		  }
		else
		  {// code for IE6, IE5
		  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
		  }
		xmlhttp.onreadystatechange=function()
		  {
		  if (xmlhttp.readyState==4 && xmlhttp.status==200)
		    {
			   // alert(xmlhttp.responseText);
		        $(ele).parent().parent().parent().next("tr").html(xmlhttp.responseText);
		        $("#report tr.odd:not(#mo)").show();
				$("#report tr:not(.odd):not(#mo)").hide();
				$(ele).parent().parent().parent().hide();
		    	$(ele).parent().parent().parent().next("tr").toggle();
		    }
		  }
	//	var cont = "comment-project-hide.php?indexcomment="+indexcomment+"&idtestproject="+idtestproject+"&id_employee="+id_employee+"&id="+id;
		//alert(cont);
		//var contenttestpro = $(ele).find("#c_hidden").val();
		var lang = '<?=$_SESSION['lang']?>';
		xmlhttp.open("GET","content-project/comment-project-hide.php?indexcomment="+indexcomment+"&idtestproject="+idtestproject+"&id_employee="+id_employee+"&idproject="+id+"&recyclebin="+recyclebin+"&newlang="+lang,true);
		xmlhttp.setRequestHeader("Content-Type", "charset=utf-8");
		xmlhttp.send();

}

function commentProjectHide(indexcomment,idtestproject,id_employee,id,recyclebin,ele)
{
		if (window.XMLHttpRequest)
		  {// code for IE7+, Firefox, Chrome, Opera, Safari
		  xmlhttp=new XMLHttpRequest();
		  }
		else
		  {// code for IE6, IE5
		  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
		  }
		xmlhttp.onreadystatechange=function()
		  {
		  if (xmlhttp.readyState==4 && xmlhttp.status==200)
		    {
			   // alert(xmlhttp.responseText);
		        $(ele).parent().parent().parent().next("tr").html(xmlhttp.responseText);
		        $("#report tr.odd:not(#mo)").show();
				$("#report tr:not(.odd):not(#mo)").hide();
				$(ele).parent().parent().parent().hide();
		    	$(ele).parent().parent().parent().next("tr").toggle();
		    }
		  }
	//	var cont = "comment-project-hide.php?indexcomment="+indexcomment+"&idtestproject="+idtestproject+"&id_employee="+id_employee+"&id="+id;
		//alert(cont);
		//var contenttestpro = $(ele).find("#c_hidden").val();
		var lang = '<?=$_SESSION['lang']?>';
		xmlhttp.open("GET","content-project/comment-project-hide.php?indexcomment="+indexcomment+"&idtestproject="+idtestproject+"&id_employee="+id_employee+"&idproject="+id+"&recyclebin="+recyclebin+"&newlang="+lang,true);
		xmlhttp.setRequestHeader("Content-Type", "charset=utf-8");
		xmlhttp.send();

}

function active_test_project(idtestproject,idp,idemployee,page,ele)
{
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
	    //alert(xmlhttp.responseText);
        document.getElementById("aaa").innerHTML=xmlhttp.responseText;
        bindEventAfterAjax();
    }
  }
var lang = '<?=$_SESSION['lang']?>';
xmlhttp.open("GET","content-project/process-active-testproject.php?idtestproject="+idtestproject+"&id="+idp+"&idemp="+idemployee+"&newlang="+lang+"&page="+page,true);
xmlhttp.send();
}
</script>

<div class="main_content" id="accordion-js">
<?php while ($row=mysql_fetch_array($querydetail)){ $idmanager = $row[IDManager];
if($row[IDManager]==$_SESSION['IDEmployee']){
	$_SESSION['posmanager']=1;
}
$queryManger =mysql_query("SELECT emp.FullName FROM employee emp WHERE emp.IDEmployee = '$idmanager'" );?>

	<div class="projectInfo">

		<span class="caption"><?php echo $l_project?> : <i><?php echo $row[NameProject]?>
		</i> </span>
		<div class="divinvi" style="display: none">
			<table width="100%" cellspacing="5" cellpadding="0">
				<tr>
					<td width="150">- <?php echo $l_start_date?> :</td>
					<td class="underline"><?php echo $row[DateStart]?></td>
				</tr>
				<tr>
					<td width="150">- <?php echo $l_manager?> :</td>
					<?php while ($r = mysql_fetch_array($queryManger)){?>
					<td class="underline"><?php echo  $r[FullName];}?>
					</td>
				</tr>
				<tr>
					<td width="150">- <?php echo $l_status?> :</td>
					<td class="underline"><?php 
					if($row[Status]==0){
						echo $l_status_project_no;
					}else{
						echo $l_status_project_done;
					}
					?>
					</td>
				</tr>
				<tr>
					<td width="150">- <?php echo $l_description?> :</td>
					<td class="underline"><?php echo $row[Description]?></td>
				</tr>
			</table>
		</div>
	</div>
	<?php }?>

	<div class="teamPro">
		<a class="caption"><?php echo $l_listmember?> </a>
		<div class="divinvi" style="display: none">
			<table cellspacing="3" width="100%" style="margin-bottom: 20px"
				class="listCom">
				<tr>
					<td class="titleComp"><?php echo $l_tester_team?></td>
					<td class="titleComp"><?php echo $l_coder_team?></td>
				</tr>

				<tr>
					<?php 
					$row_array = array();
					$index = 0;
					while ($row = mysql_fetch_array($queryLstMember)){
							$row_array[$index][0] = $row[IDEmployee];
							$row_array[$index][1] = $row[Position];
							$row_array[$index][2] = $row[FullName];
							$row_array[$index][3] = $row[Status];
							$index += 1;
						}
						?>
					<td style="vertical-align: top">
						<ul class="composition">
						<?php 
						foreach ($row_array as $row){
						if(($row[0]==$_SESSION['IDEmployee']) && ($row[1]==0)){
							$_SESSION['postest']=1;
						}
						if($row[1]==0){?>
							<li class="itemCom"><?php 	echo $row[2];
							if($row[3]==1) echo "<font style='font-weight: bold;'> (Not working)</font>";
							?>
							</li>
							<?php }} ?>
						</ul>
					</td>
					<td style="vertical-align: top">
						<ul class="composition">
						<?php
						foreach ($row_array as $rowCoder){
						 if($rowCoder[1]==1){?>
							<li class="itemCom"><?php 	echo $rowCoder[2];
							if($rowCoder[3]==1) echo "<font style='font-weight: bold;'> (Not working)</font>";
							?>
							</li>
							<?php } ?>
							<?php }?>
						</ul>
					</td>
				</tr>

			</table>
		</div>
	</div>
	<?php

	if($role==1 || ($_SESSION['posmanager']==1) || ($_SESSION['postest']==1)) {?>
	<script type="text/javascript">
		$(document).ready(function() {
			  var editor = CKEDITOR.replace("ncontent",{language:"<?php $lang_current = $_SESSION['lang'];
		if (isset($lang_current)) {
			if ($lang_current=='VN'){
				echo 'vi';
			}else if ($lang_current=='KR') {
				echo 'ko';
			}
			else{
				echo 'en';
			}
		}
		else{
			echo 'en';
		} ?>", height:'100%', width:'100%'});
				    CKFinder.setupCKEditor(editor, 'admin/ckfinder') ;
			});
	</script>
	<form action="content-project/process-adderror.php" method="get" name="formadderror" id="formadderror">
	<div class="newError" id="ajaxedittitletestpro">
		<a class="caption"><?php echo $l_add_error?> </a>
		
		<div class="rf-p divinvi" style="width: 100%; display:none" id="adderror">
			<div class="rf-p-b">
				<ul class="buttonColor">
					<li style="vertical-align: middle"><input id="buttonB023AB" type="button" class="button1" name="buttonB023AB" onclick="addStyleColorButton1();"/> <?php echo $l_no_fix?>
					</li>
					<li style="vertical-align: middle"><input type="button" class="button2" name="buttonB02323"  onclick="addStyleColorButton2();" /> <?php echo $l_error?>
					</li>
					<li style="vertical-align: middle"><input type="button" class="button3" name="button3DA850"  onclick="addStyleColorButton3();"/> <?php echo $l_fix_complete?>
					</li>
				</ul>
				<br class="clear" />
				 <input type="hidden" name='id' value="<?=$id?>" />
				  <input type="hidden" name='idtestproject'/>
					 <span style="display: block; text-align: left"><?php echo $l_title?>:</span> 
					 <input type="text" class="intext" style="color: #424242" name="titleerror" id="titleerror" />
					 <input type="hidden" class="intext" style="color: #424242" value='424242' name="titleerrorhidden" id="titleerrorhidden" />
					 <br/>
					 <span style="display: block; text-align: left"><?php echo $l_content?>: </span>
					 <textarea rows="" cols="" id="ncontent" class="ncontent" name="ncontent" style="width: 100%"></textarea>
					
					 <table width="100%">
					  <tr> 
						  <td style="text-align:left"> 
						  <a  onkeydown="return CKEDITOR.tools.callFunction(0, 12, event);"
						 id=cke_21 class="cke_off cke_button_image"
						   title=Image role=button tabIndex=-1 aria-labelledby=cke_21_label
						   onclick="CKEDITOR.tools.callFunction(17, this); return false;" href="javascript:void('Image')" ? unselectable="on" 
						   >
							  <input class="buttonProject" type="button" style="margin: 5px 0;" value="Insert images" /> 
						  </a>
						  </td> 
						  <td style="text-align:right"> 
							  <input class="buttonProject" type="submit" style="margin: 5px 0;" id="addnewerror" name="addnewerror" value="<?php echo $l_add_error?>" />
						      <input class="buttonProject"  type="submit" style="margin: 5px 0;visibility: hidden;display: none;" id="update" name="update" value="Update" />
							  <input class="buttonProject"  type="reset" onclick="return cancelAddErr('adderror');$('#formadderror:adderror').value='';" style="margin: 5px 0;" value="<?php echo $l_cancel?>" />
						  </td> 
					  </tr>
					</table>
					  	
					<div style="text-align: right">
											</div>
			</div>
		</div>
	</div>
	</form>
	<?php }?>


	<?php include 'include-list-error-pro.php';?>
</div>
				